package com.apep.jwcs.pojo;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;
import java.util.Set;

import com.hitrust.gs.service.GSBaseBean;

public class BusInfo implements GSBaseBean{

	private String busCode;

	private String companyCode;

	private String companyBusCode;
	    
//	private BusInfoDetail busInfoDetail;
	
//	private Set<BusYearCheckMonth> busYearCheckMonths;
	
//	private Set<BusMaintainGarage> busMaintainGarages;

	private String busManufactoryModelCode;

	private String busCompanyModelCode;

	private Float totalKm;

	private Float totalKmWithoutThisMonth;

//	private BusStatus busStatus;

	private String departmentCode;

	private String produceCompany;

	private Integer busUseLimit;

	private String chassisCode;

	private String transmissionCaseCode;

	private String airConditionCode;

	private Date busUseDate;

	private Date nextTimeCheckUp;

	private Date lastTimeCheckUp;

	private Integer qualityDate;

	private String busTeamCode;

	private String lineCode;

	private String filialeCode;

//	private BusStatus remark1;

	private String remark2;

	private String remark3;

	private String garageCode;

	private String maintainRuleGroupCode;

	private Integer yearCheckMonth;

	private String outFactoryPC;

	private String engineCode;
	
	private String nowEngineCode;
	

	public String getNowEngineCode() {
		return nowEngineCode;
	}
	
	public void getMenuBusStatus(){
		
	}
	public void setNowEngineCode(String nowEngineCode) {
		this.nowEngineCode = nowEngineCode;
	}

	public String getBusCode() {
		return busCode;
	}

	public void setBusCode(String busCode) {
		this.busCode = busCode;
	}

//	public BusInfoDetail getBusInfoDetail() {
//		return busInfoDetail;
//	}
//
//	public void setBusInfoDetail(BusInfoDetail busInfoDetail) {
//		this.busInfoDetail = busInfoDetail;
//	}

	public String getBusManufactoryModelCode() {
		return busManufactoryModelCode;
	}

	public void setBusManufactoryModelCode(String busManufactoryModelCode) {
		this.busManufactoryModelCode = busManufactoryModelCode;
	}

	public String getBusCompanyModelCode() {
		return busCompanyModelCode;
	}

	public void setBusCompanyModelCode(String busCompanyModelCode) {
		this.busCompanyModelCode = busCompanyModelCode;
	}

	public Float getTotalKm() {
		return totalKm;
	}

	public void setTotalKm(Float totalKm) {
		this.totalKm = totalKm;
	}

	public Float getTotalKmWithoutThisMonth() {
		return totalKmWithoutThisMonth;
	}

	public void setTotalKmWithoutThisMonth(Float totalKmWithoutThisMonth) {
		this.totalKmWithoutThisMonth = totalKmWithoutThisMonth;
	}

	public String getDepartmentCode() {
		return departmentCode;
	}

	public void setDepartmentCode(String departmentCode) {
		this.departmentCode = departmentCode;
	}

	public String getProduceCompany() {
		return produceCompany;
	}

	public void setProduceCompany(String produceCompany) {
		this.produceCompany = produceCompany;
	}

	public Integer getBusUseLimit() {
		return busUseLimit;
	}

	public void setBusUseLimit(Integer busUseLimit) {
		this.busUseLimit = busUseLimit;
	}

	public String getChassisCode() {
		return chassisCode;
	}

	public void setChassisCode(String chassisCode) {
		this.chassisCode = chassisCode;
	}

	public String getTransmissionCaseCode() {
		return transmissionCaseCode;
	}

	public void setTransmissionCaseCode(String transmissionCaseCode) {
		this.transmissionCaseCode = transmissionCaseCode;
	}

	public String getAirConditionCode() {
		return airConditionCode;
	}

	public void setAirConditionCode(String airConditionCode) {
		this.airConditionCode = airConditionCode;
	}

	public Date getBusUseDate() {
		return busUseDate;
	}

	public void setBusUseDate(Date busUseDate) {
		this.busUseDate = busUseDate;
	}

	public Date getNextTimeCheckUp() {
		return nextTimeCheckUp;
	}

	public void setNextTimeCheckUp(Date nextTimeCheckUp) {
		this.nextTimeCheckUp = nextTimeCheckUp;
	}

	public Date getLastTimeCheckUp() {
		return lastTimeCheckUp;
	}

	public void setLastTimeCheckUp(Date lastTimeCheckUp) {
		this.lastTimeCheckUp = lastTimeCheckUp;
	}

	public Integer getQualityDate() {
		return qualityDate;
	}

	public void setQualityDate(Integer qualityDate) {
		this.qualityDate = qualityDate;
	}

//	public BusStatus getBusStatus() {
//		return busStatus;
//	}
//
//	public void setBusStatus(BusStatus busStatus) {
//		this.busStatus = busStatus;
//	}

	public String getBusTeamCode() {
		return busTeamCode;
	}

	public void setBusTeamCode(String busTeamCode) {
		this.busTeamCode = busTeamCode;
	}

	public String getLineCode() {
		return lineCode;
	}

	public void setLineCode(String lineCode) {
		this.lineCode = lineCode;
	}

	public String getFilialeCode() {
		return filialeCode;
	}

	public void setFilialeCode(String filialeCode) {
		this.filialeCode = filialeCode;
	}

//	public BusStatus getRemark1() {
//		return remark1;
//	}
//
//	public void setRemark1(BusStatus remark1) {
//		this.remark1 = remark1;
//	}

	public String getRemark2() {
		return remark2;
	}

	public void setRemark2(String remark2) {
		this.remark2 = remark2;
	}

	public String getRemark3() {
		return remark3;
	}

	public void setRemark3(String remark3) {
		this.remark3 = remark3;
	}

	public String getGarageCode() {
		return garageCode;
	}

	public void setGarageCode(String garageCode) {
		this.garageCode = garageCode;
	}

	public String getMaintainRuleGroupCode() {
		return maintainRuleGroupCode;
	}

	public void setMaintainRuleGroupCode(String maintainRuleGroupCode) {
		this.maintainRuleGroupCode = maintainRuleGroupCode;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public Integer getYearCheckMonth() {
		return yearCheckMonth;
	}

	public void setYearCheckMonth(Integer yearCheckMonth) {
		this.yearCheckMonth = yearCheckMonth;
	}

	public String getOutFactoryPC() {
		return outFactoryPC;
	}

	public void setOutFactoryPC(String outFactoryPC) {
		this.outFactoryPC = outFactoryPC;
	}

	public String getEngineCode() {
		return engineCode;
	}

	public void setEngineCode(String engineCode) {
		this.engineCode = engineCode;
	}

//	public Set<BusYearCheckMonth> getBusYearCheckMonths() {
//		return busYearCheckMonths;
//	}
//
//	public void setBusYearCheckMonths(Set<BusYearCheckMonth> busYearCheckMonths) {
//		this.busYearCheckMonths = busYearCheckMonths;
//	}
//
//	public Set<BusMaintainGarage> getBusMaintainGarages() {
//		return busMaintainGarages;
//	}
//
//	public void setBusMaintainGarages(Set<BusMaintainGarage> busMaintainGarages) {
//		this.busMaintainGarages = busMaintainGarages;
//	}

	public String getCompanyBusCode() {
		return companyBusCode;
	}

	public void setCompanyBusCode(String companyBusCode) {
		this.companyBusCode = companyBusCode;
	}

    public Object process(ResultSet aResultSet) throws SQLException {
        BusInfo busInfo=new BusInfo();
        busInfo.setBusCode(aResultSet.getString("BUS_CODE"));
        busInfo.setBusUseDate(aResultSet.getDate("BUS_USE_DATE"));
        return busInfo;
    }
}
